package rexsee.core.browser.clazz;

import android.view.MotionEvent;

public class TouchEventInfo {
	public static String EVENT_DOWN = "TouchDown";
	public static String EVENT_UP = "TouchUp";
	public static String EVENT_MOVE = "TouchMove";
	public static String EVENT_CANCEL = "TouchCancel";
	public static String EVENT_DOUBLECLICK = "DoubleClick";
	public static String EVENT_LONGPRESS = "LongPress";
	public static String EVENT_FLING = "Fling";
	public String type;
	public int x;
	public int y;
	public long downTime;
	public long eventTime;
	public int x2 = 0;
	public int y2 = 0;
	public int velocityX = 0;
	public int velocityY = 0;
	public void basicAssignment(String eventType, MotionEvent event) {
		type = eventType;
		x = Math.round(event.getX());
		y = Math.round(event.getY());
		downTime = event.getDownTime();
		eventTime = event.getEventTime();
	}
}
